@import '@/app/styles/variables';

.review {
  display: flex;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
  width: 100%;

  border-radius: 24px;
  border: 1px solid var(--simple-gray-morning, #f3f3f3);
  background: var(--simple-morning, #fff);
}

.header {
  display: flex;
  width: 100%;
}

.info {
  flex: 1;
  color: var(--simple-gray-midnight, #7d7d7d);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.stars {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.star {
  width: 20px;
  height: 20px;
  color: #e1e1e1;
}

.active {
  color: #ffd662;
}

.moreContainer {
  position: static;
}

.more {
  z-index: 100;
  cursor: pointer;
  color: var(--Simple-Blue-Day, #337cec);
  &:hover,
  &:active {
    color: var(--Simple-Blue-Day, #6fa2f0);
  }
}

.commentDefault {
  overflow: hidden;
  color: var(--simple-night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  width: 100%;
  display: inline-block;
}

.comment {
  overflow: hidden;
  color: var(--simple-night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  width: 100%;
  display: inline-block;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  word-break: break-all;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  position: relative;
}

.comment::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 23px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(-95deg, #ffffff 25.25%, rgba(255, 255, 255, 0) 95.73%);
}

@include media(sm) {
  .review {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    border-radius: 16px;
    border: 1px solid var(--simple-gray-morning, #f3f3f3);
    background: var(--simple-morning, #fff);
  }
  .info {
    color: var(--simple-gray-midnight, #7d7d7d);

    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
  }
  .stars {
    gap: 2px;
  }
  .star {
    height: 16px;
    width: 16px;
    svg {
      transform: scale(calc(16 / 20));
    }
  }
  .comment,
  .commentDefault {
    color: var(--simple-night, #000);

    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
  }
}
